import Vue from 'vue';
import Vuex from 'vuex';
// 账户
import register from '@/store/account/register';
import info from '@/store/account/info';
import homeIndex from '@/store/account/homeIndex';
import homeData from '@/store/account/homeData';
import homeOperate from '@/store/account/homeOperate';
import homeClear from '@/store/account/homeClear';

// import plugins from './plugins'

Vue.use(Vuex);

export default new Vuex.Store({
  // 严格模式（开启后所有状态必须走mutations）
  strict: process.env.NODE_ENV !== 'production',
  // 根状态（全局状态）
  state: {
  },
  // mutations,
  mutations: {
  },
  // actions,
  actions: {
  },
  // plugins,
  plugins: [],
  // modules
  modules: {
    register,
    info,
    homeIndex,
    homeData,
    homeOperate,
    homeClear,
  },
});
